package com.ruoyi.service.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.service.mapper.AbundantWaterMapper;
import com.ruoyi.service.domain.AbundantWater;
import com.ruoyi.service.service.IAbundantWaterService;
import com.ruoyi.common.support.Convert;

/**
 * 丰水期低谷时段弃水电量 服务层实现
 * 
 * @author john
 * @date 2019-01-04
 */
@Service
public class AbundantWaterServiceImpl implements IAbundantWaterService 
{
	@Autowired
	private AbundantWaterMapper abundantWaterMapper;

	/**
     * 查询丰水期低谷时段弃水电量信息
     * 
     * @param id 丰水期低谷时段弃水电量ID
     * @return 丰水期低谷时段弃水电量信息
     */
    @Override
	public AbundantWater selectAbundantWaterById(Integer id)
	{
	    return abundantWaterMapper.selectAbundantWaterById(id);
	}
	
	/**
     * 查询丰水期低谷时段弃水电量列表
     * 
     * @param abundantWater 丰水期低谷时段弃水电量信息
     * @return 丰水期低谷时段弃水电量集合
     */
	@Override
	public List<AbundantWater> selectAbundantWaterList(AbundantWater abundantWater)
	{
	    return abundantWaterMapper.selectAbundantWaterList(abundantWater);
	}
	
    /**
     * 新增丰水期低谷时段弃水电量
     * 
     * @param abundantWater 丰水期低谷时段弃水电量信息
     * @return 结果
     */
	@Override
	public int insertAbundantWater(AbundantWater abundantWater)
	{
	    return abundantWaterMapper.insertAbundantWater(abundantWater);
	}
	
	/**
     * 修改丰水期低谷时段弃水电量
     * 
     * @param abundantWater 丰水期低谷时段弃水电量信息
     * @return 结果
     */
	@Override
	public int updateAbundantWater(AbundantWater abundantWater)
	{
	    return abundantWaterMapper.updateAbundantWater(abundantWater);
	}

	/**
     * 删除丰水期低谷时段弃水电量对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deleteAbundantWaterByIds(String ids)
	{
		return abundantWaterMapper.deleteAbundantWaterByIds(Convert.toStrArray(ids));
	}
	
}
